package com.sny.crashreport;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class ErrorClientActivity extends Activity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_error_client);
    }

    /**
     * 模拟出现异常
     *
     * @param v
     * @throws Exception
     */
    public void occusError(View v) throws Exception {

        Log.i("tyler.tang", "occusError");
        if (true) {
            throw new Exception("error occus");
        }
    }

    @Override
    public void onClick(View v) {
        
    }
}
